home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_mysql.idb / usr / freeware / catman / u_man / cat1 / replace.Z / replace
Encoding:
Text File  |  2002-10-07  |  1.9 KB  |  67 lines

  1. REPLACE(1)                           REPLACE(1)
  2.  
  3.  
  4.  
  5. NNAAMMEE
  6.        replace    -  A  utility program that is used by msql2mysql,
  7.        but that    has more general applicability as  well.  replace
  8.        changes    strings     in  place  in    files  or on the standard
  9.        input. Uses a finite state machine to match longer strings
  10.        first. Can be used to swap strings.
  11.  
  12. UUSSAAGGEE
  13.        replace [-?svIV]    from to    from to    ... -- [files]
  14.  
  15.        or
  16.  
  17.        replace [-?svIV]    from to    from to    ... < fromfile > tofile
  18.  
  19. SSYYNNOOPPSSIISS
  20.        rreeppllaaccee [--??|--II] [--ss] [--vv]
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.        rreeppllaaccee
  24.  
  25.        --??|--II  info
  26.  
  27.        --ss     silent
  28.  
  29.        --vv     verbose
  30.  
  31. EEXXTTRRAA IINNFFOO
  32.        SSppeecciiaall cchhaarraacctteerrss iinn ffrroomm ssttrriinngg::
  33.  
  34.        \^     Match start of line.
  35.  
  36.        \$     Match end    of line.
  37.  
  38.        \b     Match  space-character,  start  of  line    or end of
  39.           line. For    a end \b the next replace starts  locking
  40.           at  the end space-character. A \b    alone in a string
  41.           matches only a space-character.
  42.  
  43. EEXXAAMMPPLLEE
  44.        this command swaps a and    b in the given files:
  45.  
  46.        shell> replace a    b b a -- file1 file2 ...
  47.  
  48. SSEEEE AALLSSOO
  49.        isamchk (1), isamlog (1), mysqlaccess (1), mysqladmin (1),
  50.        mysqlbug     (1),  mysqld  (1), mysqldump (1), mysqlshow (1),
  51.        msql2mysql (1), perror (1), replace (1),    safe_mysqld  (1),
  52.        which1 (1), zap (1),
  53.  
  54. AAUUTTHHOORR
  55.        Ver  1.0,  distribution    3.23.29a Michael (Monty) Widenius
  56.        (monty@tcx.se), TCX  Datakonsult     AB  (http://www.tcx.se).
  57.        This  software  comes with no warranty.    Manual page by L.
  58.        (Kill-9)     Pedersen  (kill-9@kill-9.dk),    Mercurmedia  Data
  59.        Model  Architect     / system developer (http://www.mercurme
  60.        dia.com)
  61.  
  62.  
  63.  
  64.  
  65.  
  66.              20 December 2000           REPLACE(1)
  67.